﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmNotaPedido.aspx.cs" Inherits="Box.Cliente.Logistica.Nota_Pedidos.frmNotaPedido" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
      
      <div class="panel panel-primary">
    	<div class="panel-heading"><h3>Nota de Pedido</h3></div>
    	<div class="panel-body">
                <div class="row">
                        <div class="col-md-4 .col-md-push-3">
                            <div class="panel panel-primary">
                                    <div class="panel-body">
                          <asp:TextBox ReadOnly="True" CssClass="form-control input-sm" 
                               Visible="false" runat="server" ID="txtId" />
                        <asp:UpdatePanel ID="upd1"  runat="server">
                             <ContentTemplate>
                             <label for="lbladuntardoc">Aduntar Documento</label>
                                 <asp:FileUpload ID="fuArchivo" CssClass="form-control input-sm" runat="server" />
                             <asp:Button  ID="btnDocumento" runat="server" Text="Actualizar Documento" CssClass="btn btn-default" Visible="false"/>
                            <br />
                             </ContentTemplate>                       
                        </asp:UpdatePanel>
                        <label>Comentario</label>
                        <asp:TextBox runat="server" ID="txtComentario" Width="330px" Height="230" CssClass="form-control input-sm" TextMode="MultiLine"/></td>
                        </div>
                          </div>
                       </div>

                    
              <div class="col-md-8 .col-md-push-3">
                     <div class="panel panel-primary">
                        <div class="panel-body">
                          <label for="txtNroCompra">N° Compra</label>
                                <asp:TextBox runat="server" TextMode="Number" MaxLength="12" ID="txtNroCompra" CssClass="form-control input-sm"/>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtNroCompra" ErrorMessage="Campo Necesario"
                                 ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                                <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" TargetControlID="txtNroCompra" FilterType="Numbers" runat="server"></ajaxToolkit:FilteredTextBoxExtender>

  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
	                                    <ContentTemplate>
 	                                        <asp:ListView ID="lvDoc"
	                                            ItemType="Box.Entities.NotaPedido"
 	                                            SelectMethod="GetDoc"
 	                                            runat="server">
 	                                    <LayoutTemplate>
 	                                        <div id="itemPlaceholder" runat="server"></div>
 	                                    </LayoutTemplate>
	                                    <ItemTemplate>
	                                            <div class="row">
	                                                <div class="item">
<%--	                                                      <iframe id="iframePDF" src="<%# string.Format("http://localhost:1202/Images/"+Item.DocumentoPedido)%>" style="width:800px; height:375px;" frameborder="1"></iframe>--%>
                                                              <iframe id="iframePDF" src="<%# string.Format("http://192.168.43.84/boxCorporacion/Images/"+Item.DocumentoPedido)%>" style="width:800px; height:375px;" frameborder="1"></iframe>

	                                                </div>
 	                                            </div>
	                                    </ItemTemplate>
	                                </asp:ListView>
	                            </ContentTemplate>
	                        </asp:UpdatePanel> 
                 </div>
                             
            <br/><br/>
    	</div>
                        
                        </div>
                </div>    
        </div>

    	<div class="panel-footer">
			<asp:Button runat="server" ID="btnGuardar" CssClass="btn btn-success" Text="Guardar"  OnClick="btnGuardar_Click"  />
				<%-- <asp:Button runat="server" ID="btnLimpiar" CssClass="btn bg-info" Text="Limpiar"/>--%>
			<asp:Button  ID="btnCancelar" runat="server" Text="Atrás" CssClass="btn btn-danger" OnClick="btnCancelar_Click" OnClientClick="return confirm('Desea  salir a Listar Notas Pedidos');"/>
         
		</div>
    </div>
</asp:Content>
